package net.qhzw.admin.entity;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.io.Serializable;

@Data
public class SysArea implements Serializable {

    private static final long serialVersionUID = 1L;

    /***
     * 区划代码
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long code;

    /***
     * 名称
     */
    private String name;


    /***
     * 级别1-5,省市县镇村
     */
    private Integer level;

    /***
     * 父级区划代码
     */
    private Long pcode;

}
